package com.wanlian.netty.msg.Device;

import com.wanlian.File.StorageItem;
import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.MsgType;

/**
 * 获取云盘子项目的消息
 */
public class FileStorageItemReqMsg extends BaseMsg {

    private StorageItem fileItem;

    public FileStorageItemReqMsg(){
        super();
        this.setType(MsgType.DEVICE_FILE_STORAGEITEM_REQ);
    }

    public StorageItem getFileItem() {
        return fileItem;
    }

    public void setFileItem(StorageItem fileItem) {
        this.fileItem = fileItem;
        this.setContent(JsonStringUtil.writeValueAsString(fileItem));
    }
}
